]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Show disabled icon when bluetooth cellular is disabled
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 21 Feb 2022 12:39:17 +0000 (13:39 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 23 Feb 2022 00:15:06 +0000 (00:15 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

js/ui/status/network.js

index 9f74877bafe77fdc1ac11f12d48bf43f006c5549..a90b29778ad223a6eff93067bdb10462d5f9145a 100644 (file)
@@ -669,6 +669,13 @@ var NMDeviceBluetooth = class extends NMConnectionDevice {
         return _("Connect to Internet");
     }
 
+    _getMenuIcon() {
+        if (!this._device.active_connection)
+            return 'network-cellular-disabled-symbolic';
+
+        return this.getIndicatorIcon();
+    }
+
     getIndicatorIcon() {
         if (this._device.active_connection) {
             let state = this._device.active_connection.state;